package com.ocom.payconfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.payconfig.EntityReceiptAddress;
import com.ocom.common.request.payconfig.adreceiptinfo.DeleteAdReceiptInfoRequest;
import com.ocom.common.request.payconfig.adreceiptinfo.GetAdReceiptInfoRequest;
import com.ocom.common.request.payconfig.adreceiptinfo.UpdateAdReceiptInfoRequest;

import java.util.List;

public interface ReceiptAddressService extends IService<EntityReceiptAddress> {

    List<EntityReceiptAddress> getAdReceiptInfo(Long companyId, GetAdReceiptInfoRequest request);

    Boolean addAdReceiptInfo(Long companyId, EntityReceiptAddress request);

    Boolean updateAdReceiptInfo(Long companyId, UpdateAdReceiptInfoRequest request);

    Boolean deleteAdReceiptInfo(Long companyId, DeleteAdReceiptInfoRequest request);

    Integer countByReceiptName(Long companyId, Long comId, String receiptName);

    EntityReceiptAddress getByReceiptName(Long companyId, Long comId, String receiptName);

    List<EntityReceiptAddress> getReceiptIds(Long companyId, String receiptName);

    List<EntityReceiptAddress> getReceiptInIds(Long companyId, List<Integer> receiptIds);

    Boolean updateCodeUrl(Long companyId, Integer receiptId, String codeUrl, String codeUrl2);

}
